package com.cloudweb.oa.service;

import com.redmoon.oa.base.IFormDAO;
import com.redmoon.oa.flow.*;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.util.Vector;

public interface FlowService {

    JSONObject init(WorkflowDb wf, MyActionDb mad, FormDAO fdao, String mutilDept);

    JSONArray fieldsToJSONArray(long myActionId, String skey, Leaf lf, IFormDAO fdao, Vector<FormField> formFields, String[] fdsWrite, String[] fdsHide, JSONArray arrSums) throws JSONException;

    JSONArray matchBranchAndUser(WorkflowActionDb wa, Vector<WorkflowActionDb> vto) throws JSONException, MatchUserException;

    com.alibaba.fastjson.JSONObject listDoing(String showyear, String showmonth, String op, String title, int pagenum, int pagesize);
}
